public class Demo4 {
    public static void main(String[] args) {
        //1.STRING,JAVA lang下的类不需要导包,""字符串常量,也是String类对象,""字符串String对象不能更改
        String s="123";
        System.out.println(s);
        s="12345678910";
        System.out.println(s);
        char[] st={'1','2','3','4'};
        String s1=new String();
        System.out.println(s1);
        String s2=new String(s1);
        System.out.println(s2);
        String s3=new String(st);
        System.out.println(s3);
        String s4="123";
        System.out.println(s4);
        byte[] bt={22,33,18,87};
        for (int i = 0; i < bt.length; i++) {
            System.out.println(bt[i]);
        }
        String str=new String(bt);
        System.out.println(str);

    }
}
